<?php

namespace App\Libraries\Entities;

trait HasDescription
{
    protected $DescriptionFlag = false;

    public function useDescription()
    {
        return $this->DescriptionFlag;
    }

    public function setDescription($content)
    {
        if (!is_null(static::DESCRIPTION) && !$this->isDirty(static::DESCRIPTION)) {
            $this->{static::DESCRIPTION} = $content;
        }
    }
}
